package com.ruoyi.business.controller.fuyou;


import com.ruoyi.business.service.IWsdRefundTransactionsService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.dto.WsdPaymentRecordsDTO;
import com.ruoyi.common.core.domain.entity.WsdRefundTransactions;
import com.ruoyi.common.core.domain.vo.WsdPaymentRecordsVO;
import com.ruoyi.common.core.domain.vo.WsdRefundTransactionsVO;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

import static com.ruoyi.common.utils.PageUtils.startPage;

/**
 *
 * 退款流水表，记录所有退款相关的信息
 *
 * @author wwq
 * @since 2024-05-20
 */
@Controller
@RequestMapping("/wsdRefundTransactions")
public class WsdRefundTransactionsController extends BaseController {
    @Autowired
    private IWsdRefundTransactionsService wsdRefundTransactionsService;

    /**
     * 查询退款流水记录列表
     */
    @GetMapping("/list")
    public TableDataInfo list(WsdPaymentRecordsDTO wsdPaymentRecordsDTO) {
        startPage();
        List<WsdRefundTransactionsVO> list = wsdRefundTransactionsService.listRefund(wsdPaymentRecordsDTO);
        return getDataTable(list);
    }

    /**
     * 查询退款流水表记录列表
     */
//    @GetMapping("/list2")
//    public TableDataInfo list2(WsdRefundTransactions wsdRefundTransactions)
//    {
//        startPage();
//        List<WsdRefundTransactions> list = wsdRefundTransactionsService.selectWsdRefundTransactionsList(wsdRefundTransactions);
//        return getDataTable(list);
//    }


}
